<?php
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($GLOBALS['PAD']."Modules/Contabilidade/modconf.mex");
MYTCONN();
form_pr('DpMng','','','post');?>
<div class="title">Gestao de Depositos Bancarios
	<?php mn_field('hselect','ED','DateType',1,"Data de Movimentacao;Data do Valor#1;2",'','',''); ?>
	De: <?php mn_field('date','ED','DateStart','','DpMng','7','',''); ?>
	a <?php mn_field('date','ED','DateEnd','','DpMng','7','',''); ?> | 
	Origen: <?php mn_field('select','ED','Dp_Origen','',"SELECT OriNumero AS ID, OriNombre AS NAME FROM origenes WHERE OriTipo IN (1,4)",'Todas','',''); ?>
	Situacao: <?php mn_field('hselect','ED','Dp_Flag',2,"Todas;Aberto;Cancelado;Fechado#0;2;5;6",'','',''); ?>
	| <?php mn_field('button','ED','Dp_Submit','Consultar','','','','" onclick="
		document.DpMng.action=\'Modules/Contabilidade/Lib/rs_deposits.mex\';
		subform(\'DpMng\',\'DepResults\');'); ?>
</div>
</form>
<div id="DepResults"><?php include($GLOBALS['PAD'].'Modules/Contabilidade/Lib/rs_deposits.mex'); ?></div>